<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var obj ={

    }

    Object.defineProperty(obj,"name",{
        value:"晓飞"
    })
    console.log(Object.getOwnPropertyDescriptor(obj,"name"));
</script>
</html>